<template>
  <div>
    <myNavbar title="兑换券"></myNavbar>

    <div class="saveCard_header bs">
      <text class="saveCard_header_title">兑换券</text>
    </div>
    <div class="saveCard_balance_box">
      <div style="display:flex;flex-direction: row;align-items: center">
        <text class="saveCard_balance_Titlt">剩余兑换券：</text>
        <text class="saveCard_balance">{{groupBuy}}</text>
      </div>
    </div>

    <div style="padding-left:30px;padding-top:10px;">
      <div class="saveCard_botton_bottom botton_bd_color" style="border-color:rgba(235, 89, 79, 1);" @click="toDetail">
        <text class="saveCard_botton_bottom_title botton_bd_fz_color">明细</text>
      </div>
    </div>
    <div class="rule-dio">
      <div class="rule-title" style="flex-direction: row">
        <div class="botton_Bg_Color"style="width:50px;height:4px;margin-right:20px;border-radius:15px;"></div>
        <text class="botton_bd_fz_color rule-title-text">兑换券规则</text>
        <div class="botton_Bg_Color" style="width:50px;height:4px;margin-left:20px;border-radius:15px"></div>
      </div>
      <div class="rule-text"><text class="rule-text2">1、参加团购活动可以获得兑换券</text></div>
      <div class="rule-text"><text class="rule-text2">2、兑换券可在商城兑换等价商品</text></div>
     </div>
  </div>
</template>
<script>

import {
  getInfo,
} from '@/api/member'
import myNavbar from "../../../components/myNavbar/myNavbar.vue";

 export default {
   data(){
     return{
         groupBuy:'0'
     }
   },
   components: { myNavbar },
   mounted(){
     console.log('版本号')
     this.getInfo()
   },
   methods:{
     //获取用户信息
     getInfo() {
       var _this = this
       getInfo().then(
           res => {
             if (res.type == 'success') {
               _this.groupBuy = parseInt(res.data.groupBuy)
             }
           }
       ).catch(error => {
         console.log(error)
       })
     },

     toDetail(){

         eeui.openPage({
               url: 'root://pages/member/card/groupBuyDetails',
               statusBarType: 'immersion',
               statusBarStyle: false
             }, (result) => {}
         );

     },
   }
 }
</script>
<style scoped>
.botton_Bg_Color {
  background-color:red;
}
.botton_bd_fz_color {
  color: rgba(235, 89, 79, 1);
}
.rule-title {
  width: 650px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
  font-size: 40px;
  margin-bottom: 20px;
}
.rule-title-text{
  font-size: 40px;
}

page {
  background: rgb(248, 248, 248);
}

.rule-dio {
  display: flex;
  padding: 40px;
  flex-direction: column;
  align-items: center;
  width: 690px;
  background-color: white;
  border-radius: 16px;
  margin-left: 30px;
  margin-top: 50px;
  box-sizing: border-box;
}
.rule-text{
  width: 600px;
  display: flex;
  align-items: center;
  font-size: 26px;
  padding-top: 20px;
  color: rgba(0, 0, 0, 0.4);
}
.rule-text2{
  width: 600px;
  display: flex;
  align-items: center;
  font-size: 26px;
  padding-top: 20px;
  color: rgba(0, 0, 0, 0.4);
}

.saveCard_header{
  width: 750px;
  height: 160px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 30px;
  box-sizing: border-box;
  background-color: white;
}
.saveCard_header_title{
  font-size: 50px;
  color: black;
}

.saveCard_balance_Titlt{
  font-size: 26px;
}

.saveCard_balance{
  font-size: 46px;
}

.saveCard_balance_box{
  width: 690px;
  margin-left: 30px;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  box-sizing: border-box;
  padding-bottom: 40px;
  margin-top: 50px;
}

.saveCard_botton_bottom_title{
  font-size: 28px;
}

.saveCard_botton_bottom{
  width: 150px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-width: 1px;
  border-style: solid;
  margin-top: 20px;
}
</style>



